package com.javaee.mapper.admin;

import com.javaee.entity.Board;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BoardMapper {
boolean insertBoard(Board board) ;

    Boolean deleteBoard(Integer id);

    Board getBoardById(Integer id);

    Boolean updateBoard(Board board);

    List<Board> searchBoard(String keyword,@Param("startIndex") int pageNum, @Param("perPageSize")int pageSize);

    int selectCount();

}
